﻿@using ClientApp.Models
@using CommonApp
@{
    ViewBag.Title = "Cards";
    Layout = "~/Views/Shared/_Cards_Menu.cshtml";
}

<h2>Cards</h2>


<div class="rightSide">
    <div>
        <button class="invisible" id="blockCard">Lock</button>
    </div>
    
    <div>
        <button class="invisible" id="unblockCard">Unlock</button>
    </div>
</div>

<div>
    @Html.Partial("_Cards")
</div>

@section cardsScript {
    <script type="text/javascript" src="@Url.Content("~/Scripts/cards.js")"></script>
    <script type="text/javascript">
        $(function() {
            rowClickHandler = function () {
                $("#statementMenuItem").removeClass('invisible');
                $(".selected").toggleClass("selected");
                $(this).toggleClass("selected");
                $("#cardNumber").attr("value", $(".selected").find("td:first").text());
                modifyCardButtons();
            };
        });
    </script>

}
